<!doctype html>
<html lang="en">
<head>
	<meta charset="UTF-8">
	<title>首页</title>
	<link rel="stylesheet" href="<?php echo IMG_PATH ?>bdkd/css/scss.css?saasd=2">
	<link rel="stylesheet" href="<?php echo IMG_PATH ?>bdkd/css/reset.css?saasd=2">
	<script src="http://g.tbcdn.cn/mtb/lib-flexible/0.3.4/??flexible_css.js,flexible.js"></script>
	<script type="text/javascript" src="<?php echo IMG_PATH ?>bdkd/js/swiper-3.4.2.jquery.min.js"></script>
	<script type="text/javascript" src="<?php echo IMG_PATH ?>bdkd/js/swiper-3.4.2.min.js"></script>
    <script src="<?php echo IMG_PATH ?>bdkd/js/jquery-1.11.1.min.js"></script>
	<link rel="stylesheet" type="text/css" href="<?php echo IMG_PATH ?>bdkd/css/swiper.css">
	<link rel="stylesheet" href="<?php echo IMG_PATH ?>bdkd/css/swiper.min.css">
    <style>
        #wu{
            width:100%;
            height:5.2rem;
            background: url(<?php echo IMG_PATH ?>bdkd/img/wu.png)no-repeat;
            background-size:100%;
            background-position: center;
            position: relative;
        }
        #wu p{
            position: absolute;
            bottom:40px;
            width:100%;
            text-align: center;
            color:#91d0fd;
            font-size:0.29333333rem;
            font-weight: 900;
        }
    </style>
</head>
<body>
<div id="waikuang">
        <form method="get" action="<?php echo SITE_PATH?>work/bpost/goodsInfo">
		<div class="daohangtiao">
			<div class="dht">
				<div class="gongsi">
					<div class="gongsi-one">
						<p class="bug">公司</p>
						<img class="xiala" src="<?php echo IMG_PATH ?>bdkd/img/xiala-32@2x.png" alt="">
						<div class="kuaidigongsi" style="display:none">
                            <ul id="ul">
                                <?php

                                foreach ($express as $val){
                                    ?>
                                    <li value="<?php echo $val->code;?>"><?php echo $val->name;?></php></li>
                                    <?php
                                }
                                ?>
                            </ul>
						</div>
					</div>
				</div>
                <input type="hidden" name="code" id="code"/>
                <input name="ex_order" type="text" placeholder="输入单号查询快递" id="ex_order"/>
				<div class="fangdajing">
                    <input id="put" class="fdj" type = "image" src = "<?php echo IMG_PATH ?>bdkd/img/fdj@2x.png"inclick ="document.foormName.submit()" >
				</div>

			</div>
		</div>

        </form>

		<div class="swiper-container">
		  <div class="swiper-wrapper">
		    <div class="swiper-slide"><img src="<?php echo IMG_PATH ?>bdkd/img/banner1@2x.png" alt=""></div>
		    <div class="swiper-slide"><img src="<?php echo IMG_PATH ?>bdkd/img/banner2@2x.png" alt=""></div>
		    <div class="swiper-slide"><img src="<?php echo IMG_PATH ?>bdkd/img/banner3@2x.png" alt=""></div>
		  </div>
	
		   <div class="swiper-pagination"></div>
		   
		</div>

		<div class="lunbo-down">
			<a href="<?php echo SITE_PATH ;?>work/bexpress/qu" class="a-kdzq">
			<div class="kdzq">
				<img src="<?php echo IMG_PATH ?>bdkd/img/kdzq@2x.png" alt="">
				<p>快递专区</p>
			</div>
			</a>
			<a href="<?php echo SITE_PATH ;?>work/bpost/group" class="a-czlc">
			<div class="czlc">
				<img src="<?php echo IMG_PATH ?>bdkd/img/czzq@2x.png" alt="">
				<p>成长历程</p>
			</div>
			</a>
		</div>
		<div class="ssgz">
			<a></a><p>实时跟踪</p>
		</div>
        <?php
        if(empty($list)){
            ?>
            <div id="wu">
                <!-- <img src="./img/dengdai@2x.png" alt=""> -->
                <p>亲爱的的小主，开始您的第一单邮寄吧</p>
            </div>
        <?php
        }else{
            ?>
            <div class="kuaidi">
                <?php
                foreach ($list as $val){
                    //print_r($val);
                    ?>

                    <a href="<?php echo SITE_PATH?>work/bpost/goodsInfo?code=<?php echo $val['express_name'];?>&ex_order=<?php echo $val['ex_order'];?>" class="a-shunfeng">

                        <div class="sf-logo">
                            <?php
                                if($val['express_name']=='zhongtong'){
                                    ?>
                                    <img src="<?php echo IMG_PATH ?>bdkd/img/zhongtong.png" alt="">
                            <?php
                                }
                                if($val['express_name']=='yousuwuliu'){
                                    ?>
                                    <img src="<?php echo IMG_PATH ?>bdkd/img/yousu.png" alt="">
                            <?php
                                }
                            if($val['express_name']=='yunda'){
                                ?>
                                <img src="<?php echo IMG_PATH ?>bdkd/img/yunda.png" alt="">
                                <?php
                            }
                            if($val['express_name']=='yuantong'){
                                ?>
                                <img src="<?php echo IMG_PATH ?>bdkd/img/yuantong.png" alt="">
                                <?php
                            }
                            if($val['express_name']=='shunfeng'){
                                ?>
                                <img src="<?php echo IMG_PATH ?>bdkd/img/shunfeng.png" alt="">
                                <?php
                            }
                            if($val['express_name']=='debangwuliu'){
                                ?>
                                <img src="<?php echo IMG_PATH ?>bdkd/img/debang.png" alt="">
                                <?php
                            }
                            if($val['express_name']=='huitongkuaidi'){
                                ?>
                                <img src="<?php echo IMG_PATH ?>bdkd/img/baishi.png" alt="">
                                <?php
                            }
                            if($val['express_name']=='shentong'){
                                ?>
                                <img src="<?php echo IMG_PATH ?>bdkd/img/shentong.png" alt="">
                                <?php
                            }
                            ?>

                        </div>
                        <div class="sf-miaoshu">
                            <p>
                                <?php
                                if($val['express_name']=='zhongtong'){
                                    ?>
                                    中通
                                    <?php
                                }
                                if($val['express_name']=='yousuwuliu'){
                                    ?>
                                    优速物流
                                    <?php
                                }
                                if($val['express_name']=='yunda'){
                                    ?>
                                    韵达
                                    <?php
                                }
                                if($val['express_name']=='yuantong'){
                                    ?>
                                    圆通
                                    <?php
                                }
                                if($val['express_name']=='shunfeng'){
                                    ?>
                                    顺丰
                                    <?php
                                }
                                if($val['express_name']=='debangwuliu'){
                                    ?>
                                    德邦物流
                                    <?php
                                }
                                if($val['express_name']=='huitongkuaidi'){
                                    ?>
                                    百世汇通
                                    <?php
                                }
                                if($val['express_name']=='shentong'){
                                    ?>
                                    申通
                                    <?php
                                }
                                ?>

                            </p>
                            <p>状态:<?php echo $val['state'];?></p>
                            <p>单号:<?php echo $val['ex_order'];?></p>
                            <span><?php echo $val['time_add']; ?></span>
                        </div>

                    </a>
                <?php
                }
                ?>

            </div>
        <?php
        }
        ?>

	</div>

    <div class="flooter">
        <ul>

            <li>
                <a href="<?php echo SITE_PATH?>work/bpost/success">
                    <img src="<?php echo IMG_PATH ?>bdkd/img/fz-two@2x.png"/>
                    <p  class="color">首页</p>
                </a>
            </li>


            <li>
                <a href="<?php echo SITE_PATH?>work/borders/untreated">
                    <img src="<?php echo IMG_PATH ?>bdkd/img/dingdan-z@2x.png" />
                    <p>订单</p>
                </a>
            </li>


            <li>
                <a href="<?php echo SITE_PATH?>work/buser/userInfo">
                    <img src="<?php echo IMG_PATH ?>bdkd/img/rt-one@2x.png" />
                    <p>我的</p>
                </a>
            </li>

        </ul>
    </div>
	<script src="<?php echo IMG_PATH ?>bdkd/js/swiper.min.js"></script>
	<script src="<?php echo IMG_PATH ?>bdkd/js/swiper.jquery.js"></script>
	<script src="<?php echo IMG_PATH ?>bdkd/js/shouye.js"></script>


    <script>
        $("#put").click(function(){
            var code =$(" input[ name='code' ] ").val();
            var ex_order =$(" input[ name='ex_order' ] ").val();

            if(code==""){
                alert("请先选择要查询的快递公司再填写快递单号!");
                return false;
            }
            if(ex_order==""){
                alert("请输入快递单号!");
                return false;
            }
        });

        $("#ul li").click(function(){

            var code = $(this).attr('value');
            var name = $(this).text();
            $("#code").val(code);
            $("#ex_order").val(name);
        });

        $("#ex_order").focus(function(){
            $(this).val("");
        });
    </script>
</body>
</html>